package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbLogValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbLog is a Codegen vo type
 */
@Label("日志表")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbLog")
public class TbLog extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13154654272450L;    
    @Label("flag")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("操作人员")
    @Size(max=24)
    private String id;

    @Label("操作内容")
    @Size(max=100)
    private String operationContent;

    @Label("操作时间")
    private DateTime operationTime;

    @Label("operator")
    @Size(max=45)
    private String operator;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOperationContent() {
        return operationContent;
    }

    public void setOperationContent(String operationContent) {
        this.operationContent = operationContent;
    }

    public DateTime getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(DateTime operationTime) {
        this.operationTime = operationTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String toString() {
         return String.format("TbLog { flag : %s,id : %s,operationContent : %s,operationTime : %s,operator : %s }",flag,id,operationContent,operationTime,operator);
    }

}

